/**
 * @title CustomProgressDialog.java
 * @package com.esun.cheetah.view.personal.bindphone
 * @description 
 * @author liugan
 * @date 2012-4-25
 * @copyright 深圳市易讯天空
 */
package com.esun.cheetah.view.custom;

import com.esun.cheetah.R;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

/**
 * @title CustomProgressDialog
 * @description
 * @author liugan
 */
public class CustomProgressDialog extends Dialog {

	private TextView mTextView;
	private CharSequence mMessage;

	/**
	 * @param context
	 * @param theme
	 */
	public CustomProgressDialog(Context context) {
		super(context, R.style.dialog);
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dialog_progress_view);
		mTextView = (TextView) findViewById(R.id.tv_progress_dialog_message);
	}

	@Override
	protected void onStart() {
		mTextView.setText(mMessage);
		super.onStart();
	}

	public void setMessage(CharSequence message) {
		this.mMessage = message;
	}

}
